import request from "@/common/request"

//课程管理左树数据展示
export const leftTreeList = queryForm => {
	return request("get", "/study/course/studyCourseClassify/tree", queryForm)
}

//课程管理分页展示
export const studycoursePage = queryForm => {
	return request("get", "/study/course/studyCourse/page", queryForm)
}

//会员课程管理分页展示
export const memberStudyPage = queryForm => {
	return request("get", "/study/course/studyCourse/memberStudyPage", queryForm)
}

//课程管理列表展示
export const studycourseList = queryForm => {
	return request("get", "/study/course/studyCourse/list", queryForm)
}
//课程管理详情
export const studycourseInfo = id => {
	return request("get", "/study/course/studyCourse/info", {
		id: id,
	})
}
//课程管理信息保存
export const studycourseSave = data => {
	return request("post", "/study/course/studyCourse/save", data)
}
//课程管理信息修改
export const studycourseEdit = data => {
	return request("post", "/study/course/studyCourse/edit", data)
}
//课程管理信息删除
export const studycourseDel = id => {
	return request("post", "/study/course/studyCourse/delete?id=" + id)
}
//课程管理批量删除
export const studycourseDelBatch = ids => {
	return request("post", "/study/course/studyCourse/deleteBatch", ids)
}
//课程管理动态表头导出
export const studycourseDynamicExport = data => {
	return request("eptpost", "/study/course/studyCourse/exportDynamic", data)
}

//修改置顶状态
export const editRecommend = data => {
	return request("post", "/study/course/studyCourse/editRecommend", data)
}

//修改课程状态
export const editCourseStatus = data => {
	return request("post", "/study/course/studyCourse/editCourseStatus", data)
}
//课程评论列表
export const studyCourseList = data => {
	return request("get", "/api/member/memberComment/page", data)
}
//课程回复评论
export const studyCourseReply = data => {
	return request("get", "/api/member/memberComment/tree", data)
}
//删除课程回复评论
export const studyCourseDeleteComment = id => {
	return request("post", "/api/member/memberComment/deleteById?id=" + id)
}
